package com.yingdong.gateserver.net;

import io.netty.channel.Channel;

public class GameSession {
	private int sessionId;
	private Channel channel;
	private long timestamp;

	public int getSessionId() {
		return sessionId;
	}

	public void setSessionId(int sessionId) {
		this.sessionId = sessionId;
	}

	public Channel getChannel() {
		return channel;
	}

	public void setChannel(Channel channel) {
		this.channel = channel;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public GameSession(int sessionId, Channel channel) {
		super();
		this.sessionId = sessionId;
		this.channel = channel;
		timestamp = System.currentTimeMillis();
	}

}
